x86/amd: skip OSVW function calls if !CONFIG_HVM
authorWei Liu <wei.liu2@citrix.com>
Fri, 17 Aug 2018 15:12:36 +0000 (16:12 +0100)
committerWei Liu <wei.liu2@citrix.com>
Tue, 21 Aug 2018 14:01:13 +0000 (15:01 +0100)
commitc94ea358a3dcdce993aa0bdae040a3e3f1730816
treea30dc8da264d5628477bbaf1a0e2c0a274cc5a0b
parentd6abbaec7539e0d66177a1114e78cd3d62e6dd35
x86/amd: skip OSVW function calls if !CONFIG_HVM

The two functions are not needed when HVM is not supported in
hypervisor.

Note that using hvm_enabled won't work because early_microcode_init
gets to cpu_request_microcode before hvm_enabled is set in presmp init
call stage.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/microcode_amd.c